package com.ms3ds.mineInfo.api;

import com.ms3ds.common.core.constant.SecurityConstants;
import com.ms3ds.common.core.constant.ServiceNameConstants;
import com.ms3ds.common.core.domain.R;
import com.ms3ds.mineInfo.api.domain.Mine;
import com.ms3ds.mineInfo.api.factory.RemoteMineFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 矿山信息服务
 * 
 * @author zlw
 */
@FeignClient(contextId = "remoteMineService", value = ServiceNameConstants.MINEINFO_SERVICE, fallbackFactory = RemoteMineFallbackFactory.class)
public interface RemoteMineService
{

    /**
     * 获取全部矿山信息
     * @return
     */
    @GetMapping("/mine/getAllForRemote")
    public R<List<Mine>> getAllForRemote();

    /**
     * 获取矿山信息通过mineId
     * @param mineId
     * @return
     */
    @GetMapping("/mine/getMineByMineIdForRemote")
    public R<Mine> getMineByMineIdForRemote(@RequestParam("mineId") Long mineId);
}
